﻿using System;

namespace ReportGenerator
{
    class RandomReportNumberGenerator : IReportNumberGenerator
    {
        private readonly int _minValue;
        private readonly int _maxValue;
        private readonly Random rnd = new Random();

        public RandomReportNumberGenerator()
        {
            _maxValue = int.MaxValue;
            _minValue = int.MinValue;
        }

        public RandomReportNumberGenerator(int minValue, int maxValue)
        {
            _minValue = minValue;
            _maxValue = maxValue;
        }

        public int Generate()
        {
            return rnd.Next(_minValue, _maxValue);
        }
    }
}